<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('playerInfo',array('role_id' => $userInfo['id']))}">玩家详细信息</a></li>
    </ul>
    <table class="table table-hover table-bordered margin-top-20">
        <tr>
            <th style="width: 15%;text-align: right;">玩家ID：</th>
            <td>{$userInfo.id}（平台号：{$userInfo.pf}）（注册区服ID：{$userInfo.zone_id}）</td>
        </tr>
        <tr>
            <th style="text-align: right;">角色名：</th>
            <td>
                {$userInfo.name}
                <if condition="$userInfo['talk_lim_time'] GT time()">
                    <a class="btn btn-xs btn-primary"
                       href="javascript:doForbidLock('free','{$userInfo.id}','{:url('PlayerManage/forbidTalk')}');">解禁</a>
                    <else/>
                    <a class="btn btn-xs btn-warning"
                       href="javascript:doForbidLock('forbid','{$userInfo.id}','{:url('PlayerManage/forbidTalk')}');">禁言</a>
                </if>
                <eq name="userInfo.state" value="1">
                    <a class="btn btn-xs btn-primary"
                       href="javascript:doForbidLock('unlock','{$userInfo.id}','{:url('PlayerManage/forbidUser')}');">解封</a>
                    <else/>
                    <a class="btn btn-xs btn-warning"
                       href="javascript:doForbidLock('lock','{$userInfo.id}','{:url('PlayerManage/forbidUser')}');">封号</a>
                </eq>
                <if condition="cmf_auth_check(cmf_get_current_admin_id(),'single/PlayerManage/loginGame')">
                    <a class="btn btn-xs btn-primary" target="_blank"
                       href="{:url('loginGame',array('role_id' => $userInfo['id']))}">登录</a>
                </if>
            </td>
        </tr>
        <tr>
            <th style="text-align: right;">玩家帐号：</th>
            <td>
                {$userInfo.account}
                <!--<if condition="cmf_auth_check(cmf_get_current_admin_id(),'single/PlayerManage/resetUsername')">-->
                <!--<span><a class="btn btn-xs btn-success" href="javascript:openIframeDialog('{:url('resetUsername',array('role_id' => $userInfo['id']))}','重置玩家帐号',{},550);">重置帐号</a></span>-->
                <!--</if>-->
            </td>
        </tr>
        <tr>
            <th style="text-align: right;">角色等级：</th>
            <td>{$userInfo['lev']}级</td>
        </tr>
        <tr>
            <th style="text-align: right;">角色关卡：</th>
            <td>{$userInfo.cur_id|default=1}</td>
        </tr>
        <tr>
            <th style="text-align: right;">充值金额：</th>
            <td>{$userInfo.rmb|default=0}</td>
        </tr>
<!--        <tr>-->
<!--            <th style="text-align: right;">身上仙玉数：</th>-->
<!--            <td>{$userInfo.xian_yu|default=0}</td>-->
<!--        </tr>-->
        <tr>
            <th style="text-align: right;">战力：</th>
            <td>{$userInfo.fc|default=0}</td>
        </tr>
        <tr>
            <th style="text-align: right;">VIP等级：</th>
            <td>{$userInfo.vip|default=0}</td>
        </tr>
        <tr>
            <th style="text-align: right;">VIP经验：</th>
            <td>{$userInfo.vip_exp|default=0}</td>
        </tr>
        <tr>
            <th style="text-align: right;">是否在线：</th>
            <td>
                <eq name="userInfo.is_online" value="1">在线
                    <else/>
                    离线
                </eq>
            </td>
        </tr>
        <tr>
            <th style="text-align: right;">角色状态：</th>
            <td>
                <if condition="$userInfo['is_del'] EQ 'deleted'">
                    <span class="red">已删除</span>
                    <if condition="cmf_auth_check(cmf_get_current_admin_id(),'single/PlayerManage/resumeRole')">
                        <a class="btn btn-xs btn-success js-ajax-dialog-btn" data-msg="您确认要恢复此角色吗？"
                           href="{:url('resumeRole',array('role_id' => $userInfo['id']))}">恢复</a>
                    </if>
                    <elseif condition="$userInfo['state'] EQ 1"/>
                    已封号
                    <elseif condition="$userInfo['is_del'] EQ $userInfo['account']"/>
                    正常
                    <if condition="cmf_auth_check(cmf_get_current_admin_id(),'single/PlayerManage/deleteRole')">
                        <a class="btn btn-xs btn-success js-ajax-dialog-btn" data-msg="您确认要删除此角色吗？"
                           href="{:url('deleteRole',array('role_id' => $userInfo['id']))}">删除</a>
                    </if>
                </if>
            </td>
        </tr>
        <tr>
            <th style="text-align: right;">性别：</th>
            <td>
                <eq name="userInfo.sex" value="1">男
                    <else/>
                    女
                </eq>
            </td>
        </tr>

        <tr>
            <th style="text-align: right;">注册时间：</th>
            <td>{$userInfo.reg_time|date="Y-m-d H:i:s"}</td>
        </tr>
        <tr>
            <th style="text-align: right;">登陆时间：</th>
            <td>{$userInfo.last_login_time|date="Y-m-d H:i:s"}</td>
        </tr>

        <tr>
            <th style="text-align: right;">登陆IP：</th>
            <td>{$userInfo.last_login_ip}({:getIpFromAddress($userInfo['last_login_ip'])})</td>
        </tr>
        <tr>
            <th style="text-align: right;">设备id:</th>
            <td>{$userInfo.device_id}</td>
        </tr>

        <tr>
            <th style="text-align: right;">当前可执行操作：</th>
            <td>
                <a class="btn btn-xs btn-primary"
                   href="javascript:openIframeLayer('{:url('PlayerManage/showPackInfo',array('role_id' => $userInfo['id'],'name' => $userInfo['name'],'place' => 1))}','查看玩家背包物品',{});">查看背包物品</a>
                <a class="btn btn-xs btn-primary"
                   href="javascript:openIframeLayer('{:url('PlayerManage/showPackInfo',array('role_id' => $userInfo['id'],'name' => $userInfo['name'],'place' => 2))}','查看玩家身上装备',{});">查看玩家身上装备</a>
                <a class="btn btn-xs btn-primary"
                   href="javascript:openIframeLayer('{:url('PlayerManage/showEconomyInfo',array('role_id' => $userInfo['id'],'name' => $userInfo['name']))}','查看玩家虚拟资产',{});">查看玩家虚拟资产</a>
                <a class="btn btn-xs btn-primary"
                   href="javascript:openIframeLayer('{:url('PlayerManage/showHeroInfo',array('role_id' => $userInfo['id'],'name' => $userInfo['name']))}','查看玩家拥有修士',{});">查看玩家拥有修士</a>
            </td>
        </tr>
    </table>
</div>
<script src="__STATIC__/js/admin.js?v=4"></script>
</body>
</html>